home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 587 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  711 b 

  1. Path: news.ust.hk!ec_wsk
  2. From: ec_wsk@uxmail.ust.hk (Wong Siu Ki)
  3. Newsgroups: comp.lang.c++
  4. Subject: How to change the following BASIC into C++?
  5. Date: 5 Jan 1996 07:10:31 GMT
  6. Organization: The Hong Kong University of Science and Technology
  7. Message-ID: <4ciit7$6fa@news.ust.hk>
  8. NNTP-Posting-Host: ustsu25.ust.hk
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11.  
  12. Hi!
  13. I want to know how to write the following things in C++:
  14.  
  15. 10 a$=inkey$
  16. 20 print "ok"
  17. 30 if a$="" then goto 10 
  18.  
  19. (I know goto is not good, but here is just for convenience)
  20.  
  21. The program is to print ok ok ok ok .... until press any key.
  22. Is there any function in C++ can perform this function???
  23. Thanks!!!
  24. K.
  25.  
  26. Wong Siu Ki
  27. ec_wsk@stu.ust.hk
  28. Economics BSc Year 2
  29.